package com.liugui.springbootexceptionhandler.contoller;

import com.liugui.springbootexceptionhandler.service.UserService;
import com.liugui.springbootexceptionhandler.vo.ResultVO;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName: UserController
 * @Author: liugui
 * @Date: 2020-06-25 21:14
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping("/list")
    public ResultVO<Object> selectList(){
        return new ResultVO<>(userService.selectList());
    }

}
